package com.demo.rabbitmq;

import com.demo.rabbitmq.model.properties.RabbitMQFirstProterty;
import com.demo.rabbitmq.model.properties.RabbitMQSecondProterty;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;

/**
 * 验证skywalking消息生产者发送的消息的traceId能否传递到消费者，目前在skywalking9.6.0，使用Springboot提供@RabbitListener注解消费，traceId在日志是无法打印出来
 * 启动参数：
 * -Dspring.profiles.active=auto
 * -javaagent:G:\software\apache-skywalking-apm\apache-skywalking-java-agent-9.0.0\skywalking-agent\skywalking-agent.jar
 * -DSW_AGENT_NAME=service-rabbitmq
 *
 * @author K
 */
@EnableConfigurationProperties({RabbitMQFirstProterty.class, RabbitMQSecondProterty.class})
@Slf4j
@SpringBootApplication
public class ServiceRabbitMQApplication {

	public static void main(String[] args) {
		log.debug("service-rabbitmq startup............................................");
		SpringApplication.run(ServiceRabbitMQApplication.class, args);
	}
}
